package com.shiminghui;

import java.util.Random;

public class YanZhengMa {
    public static void main(String[] args) {

        Random random = new Random();

        char[] chs = new char[52];
        for (int i = 0; i < chs.length; i++) {
            if (i < 26) {
                chs[i] = (char) (i + 'A');
            } else {
                chs[i] = (char) (i - 26 + 'a');
            }
            System.out.print(chs[i]);
        }
        System.out.println();
        String result = "";
        //random.nextInt(chs.length);
        for (int i = 0; i < 4; i++) {

            result = result + chs[random.nextInt(chs.length)];
        }

        result = result+random.nextInt(10);
        System.out.println(result);
    }
}
